package cn.itqiqi.student_system_java.mapper;

import cn.itqiqi.student_system_java.pojo.Teacher;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface TeacherMapper {

    List<Teacher> getTeacherAll(Page<Teacher> page);
    List<Teacher> getTeacherByName(Page<Teacher> page, String name);
    List<Teacher> getTeacherByClassGuide(Page<Teacher> page, String classGuide);
    void addTeacher(Teacher teacher);
    void deleteTeacher(int tid);
    void updateTeacher(Teacher teacher);

}
